#include <stdio.h>
#include <unistd.h>
#include <string.h>
int main()
{
    //FILE* pf =fopen("text.txt","w");
    FILE* pf = fopen("text.txt","r");
    if(pf==NULL)
    {
        printf("!!!!!!\n");
        return 1;
    }
    int cnt = 7;
   // while(cnt)
   // {
   //     fprintf(pf,"Hello File:%d \n",cnt--);
   // }
    
   // char buff[64];
   // while(fgets(buff,sizeof(buff)-1,pf)!=NULL)//-1为'\0'预留一个空间
   // {
   //     buff[strlen(buff)-1] = 0;//清理'\n'
   //     puts(buff);
   // }

    fclose(pf);
    pf=NULL;

    return 0;
}
